<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/2 0002
 * Time: 下午 9:28
 */
namespace app\admin\controller;

class Index extends Common {

//    后台首页
    public function index(){
        return view();
    }

//    后台控制台
    public function console(){
        return view();
    }

    //    退出登录
    public function loginOut(){
        session('uid',null);
        session('user_token',null);
        session('user_token_time',null);
        exit('<script language="javascript">top.location.href="/login";</script>');
    }
}